<?php

namespace WoXuanWang\Advertisement\Models;

use Eloquent as Model;

/**
 * Class AdSlot
 * @package WoXuanWang\AdSlot\Models
 * @version April 6, 2017, 6:51 pm CST
 */
class AdSlot extends Model
{

    public $table = 'ad_slots';
    


    public $fillable = [
        'name',
        'position',
        'type',
        'size',
        'status',
        'description'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'name' => 'string',
        'position' => 'string',
        'type' => 'string',
        'size' => 'string',
        'status' => 'integer',
        'description' => 'string'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        'name' => 'required',
        'position' => 'required',
        'type' => 'required',
        'size' => 'required',
        'status' => 'required'
    ];

    
}
